package com.zyh.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Anime {
    Integer animeId;
    String animeName;
    String animeAuthor;
    Integer animeFinale;
    String animeOutline;
//    后端向前端传
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone = "GMT+8")
//    前端向后端传
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    Date animeBirthday;
}
